# This is a sample config file. Complete it and rename the file config.py.

import web, os

from app.helpers import misc
from app.helpers import utils

# connect to database
#====================
#if use MySQL
#db = web.database(dbn='mysql', db='mlss', user='root', passwd='1lxs')
#if use mongoDB
#from pymongo import MongoClient
#client = MongoClient('mongodb://127.0.0.1:27017/')
#test_db = client['test']
#user_coll = test_db['user_coll']
mongourl = 'mongodb://127.0.0.1:27017/'
dbs_mongo = 'test'
coll = 'user_coll'
## in development debug error messages and reloader
#web.config.debug = True

# in develpment template caching is set to false
cache = False

# global used template functions
globals = utils.get_all_functions(misc)

## the domain where to get the forms from
#site_domain = '127.0.0.1:8000'

## email settings
#mail_sender = 'XTHJ <noreply@example.com>'

# set global base template
#view = web.template.render('app/views', cache=cache,  globals=globals)

## used as a salt
#encryption_key = 'a random string'

## in production the internal errors are emailed to us
#web.config.email_errors = ''
